{include file=comm/head.html}
{include file=comm/top.html}
<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link type="text/css" href={pboot:sitetplpath}/skin/datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<script type="text/javascript" src={pboot:sitetplpath}/skin/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src={pboot:sitetplpath}/skin/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src={pboot:sitetplpath}/skin/datetimepicker/js/format.js"></script>
<script type="text/javascript" charset="utf-8" src="{CORE_DIR}/extend/ueditor/ueditor.config.js?v=v3.0.2"></script>
<script type="text/javascript" charset="utf-8" src="{CORE_DIR}/extend/ueditor/ueditor.all.min.js?v=v2.0.1"> </script>
<script type="text/javascript" charset="utf-8" src="{CORE_DIR}/extend/ueditor/lang/zh-cn/zh-cn.js?v=1.3.5"></script>
<style>ul{margin-bottom: 0;}</style>
<div class="section">
    <div class="container">
        <div class="ct2 clearfix">
            {include file=member/left.html}
            <div class="ct2-mn">
                {include file=comm/position.html}
                <div class="content-body">
                    <form action="/member/post/" method="post" onsubmit="return chcekall()">
                        <input type="hidden" name="username" value="{user:username}">
                        <input type="hidden" name="author" value="{user:nickname}">
                        <div class="form-group">
                            <label for="title"><span class="red">*</span>栏目：</label>
                            <div>
                                <select id="select" name="scode" class="select form-control">
                                    <option value="0">≡ 请选择栏目 ≡</option>
                                    {pboot:nav num=7 parent=0}
                                        {pboot:if('[nav:soncount]'>0)}
                                            {pboot:2if([nav:ispost]==1)}
                                            <optgroup label='[nav:name]'></optgroup>
                                            {/pboot:2if}
                                            {pboot:2nav parent=[nav:scode]}
                                            {pboot:2if([2nav:ispost]==1)}
                                            <option value='[2nav:scode]'>&nbsp;&nbsp;&nbsp;&nbsp;└─ [2nav:name]</option>
                                            {/pboot:2if}
                                            {/pboot:2nav}
                                        {else}
                                            {pboot:2if([nav:ispost]==1)}
                                            <optgroup value='[nav:scode]'>[nav:name]</optgroup>
                                            {/pboot:2if}
                                        {/pboot:if}
                                    {/pboot:nav} 
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="title">标题：</label>
                            <div>
                                <input type="text" name="title" class="form-control" placeholder="请输入文章标题">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="title">来源：</label>
                            <div>
                                <input type="text" name="source" class="form-control" placeholder="不填录入为本站">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="hidden">缩略图：</label>
                            <input type="hidden" name="ico" class="ico">
                            <div style="height:100px; width:100px; border:1px solid #ccc; margin-bottom:5px; border-radius:2px">
                                <img src="" class="ico" style="max-width:100%;max-height:100%">
                            </div>
                            <buttom class="btn btn-success upload" data-target=".ico">上传</buttom>
                        </div>
                        <div class="form-group">
                            <label for="title">摘要：</label>
                            <div>
                                <textarea name="description" rows="5" style="width:100%;" class="form-control"></textarea>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="title">内容：</label>
                            <div>
                                <script id="content" type="text/plain" style="width:100%;height:400px" name="content"></script>
                                <script type="text/javascript">
                                var ue = UE.getEditor("content", {
                                    toolbars: [
                                        [ "fullscreen","source","|","undo","redo","|",
            "bold","italic","underline","blockquote","forecolor","|","paragraph","fontsize","|","simpleupload","link","unlink","emotion","date","time","drafts"]
                                    ],
                                    //关闭字数统计
                                    wordCount: false,
                                    //关闭elementPath
                                    elementPathEnabled: false,
                                    //默认的编辑区域高度
                                    initialFrameHeight: 300
                                });
                                </script>
                            </div>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-info">提交</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{include file=comm/upload.html}
{include file=comm/foot.html}